package com.zz.tijian.expections;

import static com.zz.tijian.constants.ErrorInfo.Msg.SERVICE_NOT_AVAILABLE;
import static java.net.HttpURLConnection.HTTP_SERVER_ERROR;

public class ThirdPartyException extends CommonException{
    public ThirdPartyException() {
        this(SERVICE_NOT_AVAILABLE);
    }

    public ThirdPartyException(String message) {
        super(HTTP_SERVER_ERROR, message);
    }

    public ThirdPartyException(Throwable throwable, String message) {
        super(throwable, HTTP_SERVER_ERROR, message);
    }

    public ThirdPartyException(Throwable throwable) {
        super(throwable, HTTP_SERVER_ERROR, SERVICE_NOT_AVAILABLE);
    }

}
